import request from "@/utils/http";

//
export async function getCompanyList(params?: any): Promise<any> {
  return request(`/fastapi/app02/company/query`, {
    method: "post",
    data: params,
  });
}

export async function addCompany(params?: any): Promise<any> {
  return request(`/fastapi/app02/company/add`, {
    method: "post",
    data: params,
  });
}

export async function editCompany(params?: any): Promise<any> {
  return request(`/fastapi/app02/company/edit`, {
    method: "post",
    data: params,
  });
}

export async function deleteCompany(params?: any): Promise<any> {
  return request(`/fastapi/app02/company/delete/${params}`, {
    method: "get",
  });
}
